package com.xiaoshuidi.cloud.module.rooms.controller.admin.pricing.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 设置房型价格请求参数
 *
 * @Author Feng
 * @date 2023/5/16
 */
@Data
@Schema(description = "调整房型价格请求对象")
public class SetLayoutPricingReq {

    /**
     * 房型ID
     */
    @NotNull(message = "请选择一个房型")
    @Schema(description = "房型ID")
    private Long layoutId;

    /**
     * 月租金
     */
    @Digits(integer = 8, fraction = 2, message = "价格输入错误")
    @NotNull(message = "价格输入错误")
    @Min(value = 1, message = "价格输入错误")
    @Max(value = 100000, message = "价格输入错误")
    @Schema(description = "月租金")
    private Double monthRental;
}
